#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int minNumberInRotateArray(int* nums, int numsLen) {
    int min = nums[0];
    for (int i = 1; i < numsLen; i++)
    {
        if (min > nums[i])
        {
            min = nums[i];
        }
    }
    return min;
}

int main()
{
    int num[5] = { 3,4,5,1,2 };
    int t = minNumberInRotateArray(num, 5);
    printf("%d", t);
	return 0;
}